import request from 'utils/request'
// 用户登录
export const userLogin = (mobile, code) => {
  return request({
    url: 'authorizations',
    method: 'POST',
    data: {
      mobile,
      code
    }
  })
}
/**
 * 获取用户信息
 */
export const getUserInfo = () => {
  return request({
    method: 'GET',
    url: 'user/profile'
  })
}